// 220127 2035
// child_process.fork
// 需要同目录下的 support.js

const fs = require('fs');
const child_process = require('child_process');

for (var i=0; i<3; i++) {
	var worker_process = child_process.fork(__dirname + "/support.js", [i]);
	
	worker_process.on('close', function(code) {
		console.log('子进程已退出，退出码 ' + code); // code=0
	});
}
